
// 分页获取
// 养老机构等级评估
const serviceFacModel = (request) => {
	return {
		// 全字段查询
		view_dpOrgLevelEvaluate_search(query = {}) {
			return request(`/bussiness/dpOrgLevelEvaluate/search`, {
				method: 'post',
				data: query,
			})
		},
		// 采集
		dpOrgLevelEvaluate_add(query = {}) {
			return request(`/bussiness/dpOrgLevelEvaluate/add`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		dpOrgLevelEvaluate_edit(query = {}) {
			return request(`/bussiness/dpPolicyDocument/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		dpOrgLevelEvaluate_page(query = {}) {
			return request(`/bussiness/dpOrgLevelEvaluate/page`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		dpOrgLevelEvaluate_detail(id) {
			return request(`/bussiness/dpOrgLevelEvaluate/${id}`, {
				method: 'get',
			})
		},
		// 导出
		dpOrgLevelEvaluate_export(query = {}) {
			return request(`/bussiness/dpOrgLevelEvaluate/export`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id删除
		dpOrgLevelEvaluate_del(ids) {
			return request(`/bussiness/dpOrgLevelEvaluate/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 下载模版
		dpOrgLevelEvaluate_downloadTemplate(query = {}) {
			return request(`/bussiness/dpOrgLevelEvaluate/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导入
		dpOrgLevelEvaluate_import(query = {}, onUploadProgress) {
			return request(`/bussiness/dpOrgLevelEvaluate/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...serviceFacModel(request),
})
